package com.igd.action.randomCode;

import java.io.IOException;

import com.igd.action.BaseAction;
import com.igd.common.constant.SessionConstant;
import com.igd.utils.RandomCodeUtil;

 /**
 * @version  1.0
 *
 * @author   QIAOYU
 *
 * @date     2013-6-18
 *
 * @description	 随机验证码产生Action
 */

public class RandomCodeAction extends BaseAction {

	private static final long serialVersionUID = -3399825630012405658L;
	
	private RandomCodeUtil randomCode;
	
	public String generateLoginCode() throws IOException{
		
		this.getRandomCode().getRandcode(this.getReuquest(),this.getResponse(),SessionConstant.LOGIN_RANDOM_KEY);
		
		return null;
	}
	
	public RandomCodeUtil getRandomCode() {
		return randomCode;
	}

	public void setRandomCode(RandomCodeUtil randomCode) {
		this.randomCode = randomCode;
	}
}
